package com.gitee.wsl.unit.length.ext

import com.gitee.wsl.unit.length.LengthUnit

operator fun LengthUnit.times(v: Number): LengthUnit = LengthUnit.M(toBase() * v.toFloat())

operator fun LengthUnit.div(v: Number): LengthUnit = LengthUnit.M(toBase() / v.toFloat())

operator fun LengthUnit.plus(v: Number): LengthUnit = LengthUnit.M(toBase() + v.toFloat())

operator fun LengthUnit.rem(v: Number): LengthUnit = LengthUnit.M(toBase() % v.toFloat())